<?php
class ModelSettingTooltip extends Model {    
    public function loadTooltip() {      
        $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "tooltip");
        
        return $query->row;
    }
    
    public function getSizeHint() {      
        $data = $this->loadTooltip();
        
        return isset($data['size_hint']) ? $data['size_hint'] : '';
    }
    
    public function getSearchHint() {      
        $data = $this->loadTooltip();
        
        return isset($data['search_hint']) ? $data['search_hint'] : '';
    }
    
    public function getDeliveryHint() {      
        $data = $this->loadTooltip();
        
        return isset($data['delivery_hint']) ? $data['delivery_hint'] : '';
    }
    
    public function getContactText() {      
        $data = $this->loadTooltip();
        
        return isset($data['contact_text']) ? $data['contact_text'] : '';
    }
    
    public function getContactInfo() {      
        $data = $this->loadTooltip();
        
        return isset($data['contact_info']) ? $data['contact_info'] : '';
    }
    
    public function getShippingNote(){
        $data = $this->loadTooltip();
        
        return isset($data['shipping_note']) ? html_entity_decode($data['shipping_note'], ENT_QUOTES, 'UTF-8') : '';    
    }
    
    public function getNewsletterText(){
        $data = $this->loadTooltip();
        
        return isset($data['newsletter_text']) ? html_entity_decode($data['newsletter_text'], ENT_QUOTES, 'UTF-8') : '';    
    }
}
?>